<template>
  <div>登录
    <el-button @click="getLogin">发送请求</el-button>
    <el-button @click="goHome">跳转</el-button>
  </div>
</template>

<script setup>
import { onMounted } from "vue";
import { getAxios } from '@/api/global'
import { useRouter } from "vue-router";

const router = useRouter();

const goHome = () => {
  router.push({
    path: "/home"
  });
};



onMounted(() => {
  console.log(123)
})

const getLogin = async () => {
  const res = await getAxios('data.json')
}
</script>

<style lang='less'>
</style>